<!DOCTYPE html>
<html>
<head>
{include file=$Const.Include_meta_head}
{include file=$Const.Include_css css=$Inf.css_paths}
{include file=$Const.Include_js js=$Inf.js_paths}

<title>{$Data.title}</title>
</head>

<body>
{if $Data.flag.entery != 1}
	<form method=post>
		<b>Логин: </b>
		<br><input name="enteryForm[login]" value="" size=20><br>
		<b>Пароль: </b>
		<br><input name="enteryForm[password]" value="" size=20><br>
		<input type="submit" value="Войти">
	</form>
{elseif $Data.flag.entery == 1}
	<div>Вы в системе. Ваш id_gamers = {$Data.id_gamers}</div>	
	
	{if isset($Data.list_games)}
		<div style="color: blue; width: 60px; float: left;">gamers</div>
		<div style="color: green; width: 100%">time</div>

		{foreach from = $Data.list_games item = i}
				<a href="">
					<div style="background: #fc0; width: 250px;">
						<div style="color: blue; width: 60px; float: left;">{$i.gamers}</div>
						<div style="color: green; width: 100%">{$i.time}</div>
					</div>
				</a>
		{/foreach}
	{/if}
	<form method=post name = "addForm">
		<input type="submit" value="Создать еще игру">
	</form>
		
{/if}

{if isset($Data.error) && $Data.error|@count > 0}
	<ul>
	{foreach from = $Data.error item = i}
		<li><div style="color: red;">{$i}</div></li>	
	{/foreach}
	</ul>
{/if}
</body>
</html>


